<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class HallConfig
 * 
 * @property int $id
 * @property int $hall_id
 * @property int $default_agent
 * @property int $default_shareholder
 * @property \Carbon\Carbon $start_time
 * @property \Carbon\Carbon $end_time
 * @property int $status
 * @property int $pre_status
 * @property bool $is_admin_freeze
 * @property bool $is_user_freeze
 * @property bool $is_use_googlekey
 * @property int $fee_line_amount
 * @property int $fee_monthly_amount
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class HallConfig extends Eloquent
{
	protected $table = 'hall_config';

	protected $casts = [
		'hall_id' => 'int',
		'default_agent' => 'int',
		'default_shareholder' => 'int',
		'status' => 'int',
		'pre_status' => 'int',
		'is_admin_freeze' => 'bool',
		'is_user_freeze' => 'bool',
		'is_use_googlekey' => 'bool',
		'fee_line_amount' => 'int',
		'fee_monthly_amount' => 'int'
	];

	protected $dates = [
		'start_time',
		'end_time'
	];

	protected $fillable = [
		'hall_id',
		'default_agent',
		'default_shareholder',
		'start_time',
		'end_time',
		'status',
		'pre_status',
		'is_admin_freeze',
		'is_user_freeze',
		'is_use_googlekey',
		'fee_line_amount',
		'fee_monthly_amount'
	];
}
